home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1998 February
/
Macworld (1998-02).dmg
/
Inside Macworld
/
Alphamania 2 & Effector Sets
/
AlphaMania 2
/
Set FX.dir
/
00021_Script_Initialization Scripts
< prev
next >
Wrap
Text File
|
1997-12-19
|
2KB
|
79 lines
on startSetFX
global fxWindow
set fxWindow = the activeWindow
if fxWindow = (the stage) then clearGLobals
-- If authoring this movie, set fxWindow to the stage
if voidP(fxWIndow) then set fxWindow = the stage
-- Set up stuff
InitGlobals
setTextFields
-- Go to inital frame
Dispatch
end
-- Set window type and title
on activateWindow
global fxWindow
if the name of the activeWindow = "add" then exit
if the windowType of the activeWindow <> 4 then
set the windowType of the activeWindow to 4
set the modal of the activeWindow = TRUE
end if
set the title of the activeWindow to the movieName
end
-- Forget window and tracking object
on closeWindow
global fxTrackingObj, fxWindow
if objectP(fxTrackingObj) and the activeWindow = fxWindow then
set fxTrackingObj = 0
end if
forget the activeWindow
end
-- Set up tracking object and set some constants
on initGlobals
global fxDisplayMember, fxTrackingObj
set fxDisplayMember = member "Alpha"
preload fxDisplayMember
if not objectP(fxTrackingObj) then
set fxTrackingObj = new(script "Tracking Object")
if not objectP(fxTrackingObj) then
alert("Something is amiss. Unable to initiate tracking")
end if
end if
end
-- Determine where to go
on dispatch
global fxTrackingObj
if validMember(fxTrackingObj) then
go to frame "General Member Settings"
else
go to frame "No Cast Chosen"
end if
end
on SetTextFields
put " " into field "Help Text"
repeat with i = 1 to the number of castLibs
repeat with j = 1 to the number of members in castLib i
if the type of member j of castLib i = #field then
if field j of castLib i = "" then put "--" into field j of castLib i
set the font of member j of castLib i = "Geneva"
set the fontSize of member j of castLib i = 9
set the lineHeight of member j of castLib i = 12
-- set the foreColor of member j of castLib i = textcolor(#black)
end if
end repeat
end repeat
end